package cn.xianyang;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@MapperScan("cn.xianyang.*.mapper")
//扫描加载权限的Listener
@ServletComponentScan(value = {"cn.xianyang.system.listener"})
@EnableSwagger2
public class PetHome {
    public static void main(String[] args) {
        SpringApplication.run(PetHome.class);
    }
}
